<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Fun() {
            this.name = 'Damonre';
            this.age = 21;
            this.sex = 'man';
            this.run = function () {
                return this.name + '正在跑步';
            }
        }
        console.log('Fun.prototype before',Fun.prototype);
        Fun.prototype = {
            contructor: Fun,
            say: function () {
                return this.name + '正在说话';
            }
        }
        console.log('Fun.prototype after',Fun.prototype);

        var f = new Fun();
        f.run();//Damonare正在跑步
        f.say();//Damonare正在说话
    </script>
</body>

</html>